package com.zzg.dao.impl;

import com.zzg.bean.Manage;
import com.zzg.dao.ManageDAO;
import com.zzg.util.JDBCUtil;
import org.springframework.stereotype.Repository;

/**
 *	登陆
 */
@Repository
public class ManageDAOImpl implements ManageDAO{
	@Override
	public Manage login(String name, String password) {
		return JDBCUtil.queryOne(Manage.class,
				"select * from tb_manage where name = ? and password = ?",name,password);
	}
}
